package com.haiertvbic.tvwa.model;

import android.os.Handler;
import android.os.Message;
import android.widget.TextView;

public class SingleHandler extends Handler {
	
	TextView tView;
	private static SingleHandler sHandler;
	
	@Override
	public void handleMessage(Message msg) {
		super.handleMessage(msg);
		tView.setText(msg.what+"");
	}
	
	private SingleHandler(){
		
	}
	
	public void setTextView(TextView tView){
		this.tView = tView;
		
	}
	
	public static SingleHandler returnHandler(){
		if(sHandler == null)
			sHandler = new SingleHandler();
		return sHandler;
		
	}

}
